import { http } from '@/apis/http';
import type { ApiResponsePage } from '@/apis/types/Response';
import type { ArchiveCount, Archive } from '@/apis/types/Archive';

export const archiveApi = {
    /**
     * 获取归档数量
     */
    getCountList(pageNum?: number, pageSize?: number) {
        return http.get<ApiResponsePage<ArchiveCount>>('/content/archive/count', { params: { pageNum, pageSize } });
    },
    /**
     * 获取归档列表
     */
    getList(pageNum?: number, pageSize?: number) {
        return http.get<ApiResponsePage<Archive[]>>('/content/archive/getList', { params: { pageNum, pageSize } });
    }
}   